import { MessageInfo } from './../types/message';
import { http } from '../utils/http'
import type {User} from '/@/types/member'


export const getMessage = (id:string) => {
    return http<MessageInfo[]>({
        method: 'GET',
        url: `/app/message/${id}`,
    })
}

export const updateUser=(user?:User)=>
{
	return http(
	{
		method:'PUT',
		url:`/app/user/update`,
		data:user
	})
	
}